const defaultState = {
    msg:"redux不是很好用"
}
const reducer = (state = defaultState,action)=>{
    if(action.type==='1001'){
        console.log(1001);
        var newState = {...state};
        newState.msg = action.value
        return newState;
    }
    return state
}
export default reducer